import request from "@/utils/request";

export function complainList(page,pageSize){
    return request({
        url:"/api/complains",
        method:"get",
        params:{page:page,per_page:pageSize}
    })
}

export function submitComplain(order_id,description){
    return request({
        url:"/api/complains",
        method:"post",
        data:{order_id:order_id,description:description}
    })
}

export function complainDetail(id){
    return request({
        url:"/api/complains/"+id,
        method:"get"
    })
}
